package ooday02;

public class Person {
    String name;
    String address;
    int age;
    Person() {}
    Person(String name,int age,String address){
        this.name=name;
        this.address=address;
        this.age=age;
    }
    void eat(){System.out.println("家在"+address+"年龄是"+age+"的"+name+"在吃饭");}
    void sleep(){System.out.println("家在"+address+"年龄是"+age+"的"+name+"在睡觉");}
    void sayhi(){System.out.println("大家好，我的名字是："+name+"，今年"+age+"岁了，我家在"+address);}

}
